.class Lcom/waiqin365/lightwork/tracker/aa;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightwork/tracker/l;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/d;

.field final synthetic b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;Lcom/waiqin365/lightwork/tracker/d;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    iput-object p2, p0, Lcom/waiqin365/lightwork/tracker/aa;->a:Lcom/waiqin365/lightwork/tracker/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(ZLjava/util/ArrayList;)V
    .locals 9

    const/4 v8, 0x5

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->a(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Landroid/widget/ImageButton;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->a(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Landroid/widget/ImageButton;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->a:Lcom/waiqin365/lightwork/tracker/d;

    iget-object v1, v0, Lcom/waiqin365/lightwork/tracker/d;->j:Ljava/util/ArrayList;

    if-eqz v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->c(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Lcom/waiqin365/lightwork/tracker/ae;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightwork/tracker/ae;->getItem(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->c(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Lcom/waiqin365/lightwork/tracker/ae;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightwork/tracker/ae;->getItem(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/ao;

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/lightwork/tracker/ao;->a(Ljava/util/ArrayList;Z)V

    :cond_2
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Ljava/util/Calendar;->setTimeInMillis(J)V

    const/4 v1, -0x1

    invoke-virtual {v0, v8, v1}, Ljava/util/Calendar;->add(II)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v6}, Ljava/util/Calendar;->get(I)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "-"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "%02d"

    new-array v3, v6, [Ljava/lang/Object;

    invoke-virtual {v0, v7}, Ljava/util/Calendar;->get(I)I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "-"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "%02d"

    new-array v3, v6, [Ljava/lang/Object;

    invoke-virtual {v0, v8}, Ljava/util/Calendar;->get(I)I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->c(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Lcom/waiqin365/lightwork/tracker/ae;

    move-result-object v0

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightwork/tracker/ae;->getItem(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/aa;->b:Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;->c(Lcom/waiqin365/lightwork/tracker/TrackerMainActivity;)Lcom/waiqin365/lightwork/tracker/ae;

    move-result-object v0

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightwork/tracker/ae;->getItem(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/x;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/x;->a(Ljava/lang/String;)V

    goto/16 :goto_0
.end method
